package com.sc.service;

import com.sc.domain.Hire;
import com.sc.dto.HireDTO;
import org.springframework.dao.DuplicateKeyException;

import java.util.List;
import java.util.Map;

public interface HireService {

    boolean add(Hire hire);

    Map<String, Object> pageQuery(HireDTO hireDTO);

    Hire selectById(Integer id);

    boolean update(Hire hire);

    boolean deleteById(Integer id);

    boolean deleteByIds(List<Integer> ids);
}
